<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>禁飞区DEMO</title>
    {% include 'template/baseCss.volt' %}
    <link href="/css/vendor/issue-editor.less" rel="stylesheet/less" type="text/css">
    <script src="/js/less.min.js"></script>
</head>
<body>
    <h2>Lat1:</h2>
    <input id="lat1" type="text">
    <h2>Lng1:</h2>
    <input id="lng1" type="text">
    <h2>Lat2:</h2>
    <input id="lat2" type="text">
    <h2>Lng2:</h2>
    <input id="lng2" type="text">
    <button id="submit" type="button" onclick="clickSubmitButton()">提交</button>
</body>
{% include 'template/baseJs.volt' %}

<script>

    function clickSubmitButton(){
        var lng1 = $("#lng1").val();
        var lat1 = $("#lat1").val();
        var lng2 = $("#lng2").val();
        var lat2 = $("#lat2").val();
        feimaPost("/zone/getNoFlyZone",{
            "maxLng": lng1,
            "maxLat": lat1,
            "minLng": lng2,
            "minLat": lat2
        },function(result){
            if(result){
                console.log(result.data);
            }
        });
    }
</script>
</html>